﻿<Window x:Class="MTSGui.Options"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Change map type" ResizeMode="NoResize" SizeToContent="WidthAndHeight"
        Icon="/mts-gui;component/Images/images.png"
        WindowStartupLocation="CenterOwner">

    <DockPanel>

        <Grid DockPanel.Dock="Bottom">
            <Button Name="buttonComplete" Click="buttonComplete_Click" Content="Save changes" HorizontalAlignment="Right" Margin="4,4,8,8" Width="110" Height="24" />
            <Button Name="buttonCancel" Content="Cancel" HorizontalAlignment="Left" IsCancel="True" Margin="8,4,4,8" Width="70" Height="24" />
        </Grid>

        <Grid HorizontalAlignment="Left" Margin="8,4,8,4">
            <GroupBox Header="Map Type" Padding="4">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="6*" />
                    </Grid.RowDefinitions>
                    <RadioButton Margin="0,0,0,4" HorizontalAlignment="Left" Name="radioTerrain" GroupName="RenderMode" Grid.Row="0" Grid.Column="0" IsChecked="True" Checked="ModeChanged">
                        <RadioButton.Content>
                            <Grid>
                                <Label FontWeight="Bold">Terrain</Label>
                                <Label Margin="0,16,0,0">A top-down view useful for navigation.</Label>
                            </Grid>
                        </RadioButton.Content>
                    </RadioButton>
                    <RadioButton Margin="0,0,0,4" HorizontalAlignment="Left" Name="radioOblique" GroupName="RenderMode" Grid.Row="1" Grid.Column="0" Checked="ModeChanged">
                        <RadioButton.Content>
                            <Grid>
                                <Label FontWeight="Bold">Oblique</Label>
                                <Label Margin="0,16,0,0">A tilted, pseudo-3D view facing north.</Label>
                            </Grid>
                        </RadioButton.Content>
                    </RadioButton>
                    <RadioButton Margin="0,0,0,4" HorizontalAlignment="Left" Name="radioHeightmap" GroupName="RenderMode" Grid.Row="2" Grid.Column="0" Checked="ModeChanged">
                        <RadioButton.Content>
                            <Grid>
                                <Label FontWeight="Bold">Heightmap</Label>
                                <Label Margin="0,16,0,0">Shows the relative height of the map surface.</Label>
                            </Grid>
                        </RadioButton.Content>
                    </RadioButton>
                    <RadioButton Margin="0,0,0,4" HorizontalAlignment="Left" Name="radioCavemap" GroupName="RenderMode" Grid.Row="3" Grid.Column="0" Checked="ModeChanged">
                        <RadioButton.Content>
                            <Grid>
                                <Label FontWeight="Bold">Cave map</Label>
                                <Label Margin="0,16,0,0">Shows the location of caves.</Label>
                            </Grid>
                        </RadioButton.Content>
                    </RadioButton>
                    <RadioButton Margin="0,0,0,4" HorizontalAlignment="Left" Name="radioSpectrograph" GroupName="RenderMode" Grid.Row="4" Grid.Column="0" Checked="ModeChanged">
                        <RadioButton.Content>
                            <Grid>
                                <Label FontWeight="Bold">Spectrograph</Label>
                                <Label Margin="0,16,0,0">Shows the relative density of a block type.</Label>
                            </Grid>
                        </RadioButton.Content>
                    </RadioButton>
                </Grid>
            </GroupBox>
        </Grid>

        <Grid Name="ExtrasOblique" Visibility="Collapsed" HorizontalAlignment="Right" Margin="8,4,8,4">
            <GroupBox Header="Oblique Map Settings" MinWidth="240">
                <Grid Margin="4,2,2,2">
                    <Label FontWeight="Medium">Sunlight brightness</Label>
                    <Label Name="LightingValue" FontSize="20" FontWeight="Black" FontFamily="Tahoma" Content="0" 
                           HorizontalContentAlignment="Left" HorizontalAlignment="Right" VerticalAlignment="Top" 
                           Margin="0,14,6,0" Width="40"></Label>
                    <Slider Name="LightingSlider" Margin="4,26,52,0" HorizontalAlignment="Stretch" VerticalAlignment="Top" 
                            Minimum="1" Maximum="16" SmallChange="1" TickPlacement="TopLeft" IsSnapToTickEnabled="True" 
                            ValueChanged="lightingSlider_ValueChanged" Value="0" />
                </Grid>
            </GroupBox>
        </Grid>
        <Grid Name="ExtrasSpectro" Visibility="Collapsed" HorizontalAlignment="Right" Margin="8,4,8,4">
            <GroupBox Header="Spectrograph Settings" MinWidth="240">
                
                <Grid Margin="4,2,2,2">
                    <Label FontWeight="Medium">Block type</Label>
                    <ComboBox Margin="6,24,6,6" Name="blockSelect" VerticalAlignment="Top" />
                </Grid>
                
            </GroupBox>
        </Grid>
        <Grid Name="ExtrasMisc" Visibility="Collapsed" HorizontalAlignment="Right" Margin="8,4,8,4">
            <GroupBox Header="No options" MinWidth="240">
                <Grid Margin="4,2,2,2">
                    <Label FontWeight="Normal">This mode has no options you can set.</Label>
                </Grid>
            </GroupBox>
        </Grid>
    </DockPanel>
</Window>
